package demo5;

import java.util.HashMap;
import java.util.Objects;

@SuppressWarnings({"all"})
public class test {
    public static void main(String[] args) {
        HashMap map = new HashMap();
        for(int i=0;i<12;i++){
            map.put(new A(i),"hello");
        }
        System.out.println(map);
    }
}
@SuppressWarnings({"all"})
class A{
    private int num=0;

    public A(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "\nA{" +
                "num=" + num +
                '}';
    }

    @Override
    public int hashCode() {
        return 100;
    }
}
